package week13;

import java.util.ArrayList;

public class RadListTest {
    public static void main(String[] args) {
        AdminPerson admin = new AdminPerson("群主", 100);
        Member A1=new Member("成员a1",0);
        Member A2=new Member("成员a2",32);
        Member A3=new Member("成员a3",23);
        System.out.println("在没有发红包之前群主和成员卡上余额：");
        admin.show();
        A1.show();
        A2.show();
        A3.show();
        System.out.println("开始发红包啦");
        ArrayList<Integer>radList=admin.sendMoney(50,3);
        A1.receiveMoney(radList);
        A2.receiveMoney(radList);
        A3.receiveMoney(radList);
        System.out.println("发完红包之后群主和成员卡上余额变化");
        admin.show();
        A1.show();
        A2.show();
        A3.show();
    }
}
